import fs from "fs";
import path from "path";


fs.promises.rmdir(path.resolve("src/0020_文件/data1.txt"))
    .then(() => {
        console.log('删除成功');
    }).catch((err) => {
        console.log(err);
        console.log('删除失败');
    })
